package com.woniuxy.dao.impl;

import com.woniuxy.dao.ManagerDao;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.util.Map;

public class ManagerDaoImpl implements ManagerDao {
    private SqlSessionFactory sqlSessionFactory;

    public SqlSessionFactory getSqlSessionFactory() {
        return sqlSessionFactory;
    }

    public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
        this.sqlSessionFactory = sqlSessionFactory;
    }

    @Override
    public Map<String, String> getOne(int id) {
        SqlSession sqlSession = sqlSessionFactory.openSession();
        System.out.println(sqlSession);
        return null;
    }
}
